<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" charset="utf-8"
	src="${pageContext.request.contextPath}/LeisureSeeker/js/jquery-1.8.3.min.js"></script>
<title>插入景点信息的页面</title>
</head>
<body>
	<script type="text/javascript">
		function formatterDateTime() {
			var date = new Date()
			var month = date.getMonth() + 1
			var datetime = date.getFullYear()
					+ ""// "年"
					+ (month >= 10 ? month : "0" + month)
					+ ""// "月"
					+ (date.getDate() < 10 ? "0" + date.getDate() : date
							.getDate())
					+ ""
					+ (date.getHours() < 10 ? "0" + date.getHours() : date
							.getHours())
					+ ""
					+ (date.getMinutes() < 10 ? "0" + date.getMinutes() : date
							.getMinutes())
					+ ""
					+ (date.getSeconds() < 10 ? "0" + date.getSeconds() : date
							.getSeconds());
			return datetime;
		}
		$.ajax({
			type : 'post',
			url : 'http://route.showapi.com/268-1',
			dataType : 'json',
			data : {
				"showapi_timestamp" : formatterDateTime(),
				"showapi_appid" : '93715', //这里需要改成自己的appid
				"showapi_sign" : 'da97f7f1dea64e8b936b1810648bd086', //这里需要改成自己的应用的密钥secret
				"keyword" : "厦门",
				"proId" : "",
				"cityId" : "",
				"areaId" : "",
				"page" : ""
			},
			error : function(XmlHttpRequest, textStatus, errorThrown) {
				alert("操作失败!");
			},
			success : function(result) {
				console.log(result.showapi_res_body.pagebean.contentlist); //console变量在ie低版本下不能用
				//alert(result.showapi_res_code)
			}
		});
	</script>
</body>
</html>